//该文件用于创建整个应用的路由器
import VueRouter from "vue-router"

import About from '../components/About.vue'
import Home from '../components/Home.vue'

//创建并暴露一个路由器
export default new VueRouter({
    routes: [ //配置每一组路由规则
        {
            path: '/about', //路径
            component: About, //路径所展示的组件实例
        },
        {
            path: '/home',
            component: Home,
        },
    ]
})